package com.text
{
	import flash.text.TextFormat;

	public class CustomTextFormat extends TextFormat
	{
		
		public function CustomTextFormat(highlight:Boolean=false,highlightColor:uint=0xff00ffff,strikethrough:Boolean=false,strikethroughColor:uint=0xffff0000,underlinePatterned:Boolean=false,underlinePatternedColor:uint=0x00000000)
		{
			super();
			this._highlight = highlight;
            this._highlightColor = highlightColor;
            this._strikethrough = strikethrough;
            this._strikethroughColor = strikethroughColor;
            this._underlinePatterned= underlinePatterned;
            this._underlinePatternedColor = underlinePatternedColor;
          
		}
		/**
        * Hightlight text
  		*/
        private var _highlight:Boolean;
        public function get highlight():Boolean
        {
        	return _highlight;
        }
        public function set highlight(value:Boolean):void
        { this._highlight = value;
        }
        /**
        * The color used to highlight strings (RGBA).
  		*/
        private var _highlightColor:uint =0xff00ffff ; 
        public function get highlightColor():uint
        {
        	return _highlightColor;
        }
        public function set highlightColor(value:uint):void
        { this._highlightColor = value;
        }
        
        
        /**
        * strikethrough the string 
        */ 
        private var _strikethrough:Boolean;
         public function get strikethrough():Boolean
        {
        	return _strikethrough;
        }
        public function set strikethrough(value:Boolean):void
        { this._strikethrough = value;
        }
        
        private var _strikethroughColor:uint = 0xffff0000;
        public function get strikethroughColor():uint
        {
        	return _strikethroughColor;
        }
        public function set strikethroughColor(value:uint):void
        { this._strikethroughColor = value;
        }
        
        /**
        * underline the string using underline pattern
          the underline color to use
        */   
        private var _underlinePatterned:Boolean; 
        public function get underlinePatterned():Boolean
        {
        	return _underlinePatterned;
        }
        public function set underlinePatterned(value:Boolean):void
        { this._underlinePatterned = value;
        }
        
        private var _underlinePatternedColor:uint = 0xff000000;
        public function get underlinePatternedColor():uint
        {
        	return _underlinePatternedColor;
        }
        public function set underlinePatternedColor(value:uint):void
        { this._underlinePatternedColor = value;
        }
        
        
       /*  public function get textFormat():TextFormat
        {
          return super ;
        } */
        
        
		
	}
}
